﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace Baggr.ClientSite.Models
{
    public class UserModel
    {
        [Required(ErrorMessage = "Name isn't defined")]
        [StringLength(10, ErrorMessage = "Length of name should not be more then 10 letters")]
        public string Name { get; set; }

        [Required(ErrorMessage = "Password isn't defined")]
        public string Password { get; set; }

        [Required(ErrorMessage = "Password confirm isn't defined")]
        public string PasswordConfirm { get; set; }

        [Required]
        [RegularExpression(
            @"\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*",
            ErrorMessage = "E-mail adress isn't valid")]
        public string Email { get; set; }

    }
}
